package cn.signalpha.modules.shop.excel;

import cn.signalpha.modules.shop.excel.converter.PayTypeConverter;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(20)
public class OrderSettleExcel implements Serializable {
	private static final long serialVersionUID = 1L;

	@ExcelProperty(value = "订单编号")
	private String orderNo;

	@ExcelProperty(value = "支付单号")
	private String payNo;

	@ColumnWidth(30)
	@ExcelProperty(value = "外部单号")
	private String bizPayNo;

	@ExcelProperty(value = "商户名称")
	private String sellerName;

	@ColumnWidth(12)
	@ExcelProperty(value = "支付方式", converter = PayTypeConverter.class)
	private Integer payType;

	@ColumnWidth(12)
	@ExcelProperty(value = "支付金额")
	private Double payAmount;

	@ColumnWidth(12)
	@ExcelProperty(value = "退款金额")
	private Double refundAmount;

	@ColumnWidth(12)
	@ExcelProperty(value = "服务费")
	private Double serveAmount;

	@ColumnWidth(12)
	@ExcelProperty(value = "服务费比例")
	private Double serveRatio;

	@ColumnWidth(12)
	@ExcelProperty(value = "商品总价")
	private Double goodsPrice;

	@ColumnWidth(12)
	@ExcelProperty(value = "积分抵扣")
	private Double deductIntegral;

	@ColumnWidth(12)
	@ExcelProperty(value = "积分金额")
	private Double deductIntegralMoney;

	@ColumnWidth(12)
	@ExcelProperty(value = "平台优惠")
	private Double deductCouponSystem;

	@ExcelProperty(value = "创建时间")
	private Date createTime;

	@ExcelProperty(value = "结算时间")
	private Date settleTime;

}
